package com.ecube.maintenance.biz.commons;

/**
 * Created by Trible Chen on 2014/9/5.
 */
public class Constants {

    public static final int COUNT = 10;//每次请求条数
    public static final String SORT_DEFAULT = "obtDefault";
    public static final String SORT_NEAR2FAR = "obtNear2Far";//由近到远
    public static final String SORT_LOW2HIGH = "obtLow2High";//由低到高
    public static final int COLLECT_TYPE_ADD = 1;
    public static final int COLLECT_TYPE_CANCEL = -1;
    public static final String ORDER_DATA_TYPE_LAST = "dtLast";//代表最近半年的订单
    public static final String ORDER_DATA_TYPE_ALL = "dtAll";//代表最近半年的订单
    public static final String ORDER_DATA_TYPE_HISTORY = "dtHistory";//代表半年前的订单
    public static final String PREF_CITY_INFO = "pmCityInfo";//当前CityInfo对应的JSON字符串
    public static final String PREF_CITY_NAME = "pmCityName";//当前城市名(与CITY_INFO同步更新)
    public static final String PRF_CURRENT_CITY = "current_city";
    public static final String CONTACT_US_PHONE = "4008479996";
    public static boolean LOCAL_TEST_DATA = false;
    public static boolean DEBUG_MODE = false;
    public static String DEBUG_URL = "http://192.168.2.33:8000";
    public static String PRODUCT_URL = "http://tjkit.ichetu.com";
    public static String PRODUCT_URL2 = "http://118.123.173.91:3150";

    public static String getURL() {
        if (DEBUG_MODE) {
            return DEBUG_URL;
        } else {
            LOCAL_TEST_DATA = false;
            return PRODUCT_URL;
        }
    }
}
